/*OulldkM+QuKkMK86pijDaN9XwmBqlLdunX4ABLke08GqkgT598GyjZodIWQA9J46*/
import {base} from 'nc-lightapp-front';
import React, { Component } from 'react';
import NewDialog from './NewDialog';
let { NCModal} = base;

var EMPTY_FN = function(){};
class NewDialogWapper  extends NewDialog {
    constructor(props) {
        super(props);
        this.state = {
           ...this.state,
           modelcfg:{
             onHide : this.close,
             backdrop:'static'
           }
        }


    }
    render(){
        let {buttons,hotKeysCfg,modelcfg,showDialog,dialogSize,fieldid} = this.state;
        let maxModalCls = dialogSize === "max" ? "nc-modal-max" : "";
        let modelconfig = {
            ...modelcfg,
            show:showDialog,
            size:dialogSize,
            className:maxModalCls,
            fieldid:this.props.fieldid || fieldid|| this.state.dialogTitle
        };

        return (
            <NCModal {...modelconfig} >
                    <NCModal.Header closeButton>
                        <NCModal.Title>{this.state.dialogTitle || ''}</NCModal.Title>
                    </NCModal.Header>
                    <NCModal.Body>
                        {this.state.listener.renderContentArea ? this.state.listener.renderContentArea():this.props.Lang['10140SUG-000075']/* 国际化处理： 无数据!*/}
                    </NCModal.Body>
                    {this.state.showFooter &&
                    <NCModal.Footer>
                    {this.state.showDefaultBtn?this.renderDefaultButtons():this.state.listener.renderButtons?this.listener.renderButtons():null}
                    </NCModal.Footer>}
            </NCModal>
        )
    }
}
export default NewDialogWapper;
/*OulldkM+QuKkMK86pijDaN9XwmBqlLdunX4ABLke08GqkgT598GyjZodIWQA9J46*/
